package com.one.common.model.http.base;

import com.one.common.CommonApp;
import com.one.common.config.CMemoryData;
import com.one.common.utils.SystemUtils;

/**
 * Author: zhulunjun
 * Email: zhulunjun@qq.com
 * CreateDate: 2018/11/16 15:39
 * Description：公共请求参数
 **/
public class CommonParam<T extends BaseParam> {
    protected String mobile = CMemoryData.getUserMobile();
    protected String imei = SystemUtils.getDeviceID(CommonApp.getInstance());
    protected String method_name;
    protected String app_source = CMemoryData.getAppSorce();
    protected String phone_model = android.os.Build.MODEL;//手机型号
    protected String time_stamp = String.valueOf(System.currentTimeMillis());
    protected String session_id = CMemoryData.getSessionId();
    protected String system_version = "Android " + android.os.Build.VERSION.RELEASE;//android系统版本
    protected String app_version = SystemUtils.getVersionName(CommonApp.getInstance());
    protected String ip_address;
    protected T parameter;


    public CommonParam(String method_name) {
        this.method_name = method_name;
    }

    public String getImei() {
        return imei;
    }


    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getPhone_model() {
        return phone_model;
    }

    public void setPhone_model(String phone_model) {
        this.phone_model = phone_model;
    }

    public String getTime_stamp() {
        return time_stamp;
    }

    public void setTime_stamp(String time_stamp) {
        this.time_stamp = time_stamp;
    }

    public String getSystem_version() {
        return system_version;
    }

    public void setSystem_version(String system_version) {
        this.system_version = system_version;
    }

    public String getApp_source() {
        return app_source;
    }

    public void setApp_source(String app_source) {
        this.app_source = app_source;
    }

    public String getApp_version() {
        return app_version;
    }

    public void setApp_version(String app_version) {
        this.app_version = app_version;
    }

    public String getIp_address() {
        return ip_address;
    }

    public void setIp_address(String ip_address) {
        this.ip_address = ip_address;
    }

    public T getParameter() {
        return parameter;
    }

    public void setParameter(T parameter) {
        this.parameter = parameter;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMethod_name() {
        return method_name;
    }

    public void setMethod_name(String method_name) {
        this.method_name = method_name;
    }

    public String getSession_id() {
        return session_id;
    }

    public void setSession_id(String session_id) {
        this.session_id = session_id;
    }
}
